# coding:utf-8
# 作者：理想国真恵玩
import pandas as pd

df = pd.read_csv('data/stock.csv')
print(df.head())

# 查看开盘价
print('-' * 33)
print(df.loc[:'2018-02-22', 'open'])

# 查看开盘价和收盘价
print('-' * 33)
print(df.loc[:'2018-02-22', ['open', 'close']])

# 查看前三列
print('-' * 33)
print(df.loc[:'2018-02-22', :"close"])
